﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using KeRui.Common;
using System.Collections.Generic;


public partial class Manage_Cms_systemSubjectList : System.Web.UI.Page
{
    protected int TemplateID;
    protected List<KeRui.Model.CmsTemplate> listCmsTemplate;
    public List<KeRui.Model.CmsTemplateFile> list;//模板数据集合
    protected void Page_Load(object sender, EventArgs e)
    {
        //检查管理员登录HYC
        ManageHelper.CheckAdminLogin();
        //获得源模板数据
        list = new List<KeRui.Model.CmsTemplateFile>();
        KeRui.BLL.CmsTemplateFile BLLCmsTemplateFile = new KeRui.BLL.CmsTemplateFile();
        KeRui.BLL.CmsTemplate BLLCmsTemplate = new KeRui.BLL.CmsTemplate();
        listCmsTemplate=BLLCmsTemplate.GetList(" TemplateFolder='Subject'");
        if(listCmsTemplate.Count!=0)
        {
            TemplateID = listCmsTemplate[0].TemplateID;
            list = BLLCmsTemplateFile.GetList(TemplateID,7);
        }
    }
}
